<form>
  <input type="text" onKeyPress="return keypress_handler(event)">
</form>
<script>
  var temp=""
  function keypress_handler()
  {
    temp+=String.fromCharCode(event.keyCode)
    status=temp
    return true
  }
</script>
